<%= render 'shared/error_messages' %>

<%= f.hidden_field @traceability_action, value: current_user.id %>

<div class="title_box">
	 <span class="metadata_label"><%= f.label :name %></span>
	<span class="metadata_field"><%= f.text_field :name, :class => "metadata_fieldwidth"%></span>
</div>

  <%= f.label :files, :id => "user_header_size"%>
  <hr noshade size="1">


<div class="upload_box">
  <%= f.file_field :files, class: "upload_field" %>
</div>

<br>
  <%= f.label :metadata, :id => "user_header_size"%>
  <hr noshade size="1">

<div class="metadata_box">
      <span class="metadata_label"><%= f.label :authors %></span>
      <span class="metadata_field_tags"><%= f.text_area :tags, value: @tags, :id => "tags_settings"%></span>      
      <span class="metadata_field"><%= f.text_field :authors, :class => "metadata_fieldwidth"%></span>
      <span class="metadata_label_tags"><%= f.label :tags %></span><br><br><br>
      <span class="metadata_label"><%= f.label :publication_date %></span>
      <span class="metadata_field"><%= f.text_field :publication_date, :class => "metadata_fieldwidth"%></span><br><br><br>
      <span class="metadata_label"><%= f.label :related_work %></span>
      <span class="metadata_field"><%= f.text_field :related_work, :class => "metadata_fieldwidth"%></span>    
</div>
  
	<%= f.label :description, :id => "upload_header_size"%>
	<hr noshade size="1">
  
<div class="description_box">
	<%= f.text_area :description, :id => "description_settings" %>
</div>
  
	<%= f.label :publication, :id => "upload_header_size"%>
	<hr noshade size="1">

	<div class="publication_box">
	<span class="publication_label"><%= f.label :categories %></span>
	<span class="publication_field"><%= select_tag("category_ids[]", 
			options_for_select(@all_categories, @selected_categories), 
			multiple: true, size: 6, :class => "publication_fieldwidth") %></span>  
</div>